﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
namespace BUS
{
    public class CTPhieuNhapHangBUS
    {
        public List<CTPhieuNhapHangDTO> HienThi(string mapn)
        {
            CTPhieuNhapHangDAO dao = new CTPhieuNhapHangDAO();
            return dao.HienThi(mapn);
        }

        public int ThemCTPNH(CTPhieuNhapHangDTO dto)
        {
            CTPhieuNhapHangDAO dao = new CTPhieuNhapHangDAO();
            return dao.ThemCTPNH(dto);
        }

        public int CapNhat(CTPhieuNhapHangDTO dto)
        {
            CTPhieuNhapHangDAO dao = new CTPhieuNhapHangDAO();
            return dao.CapNhat(dto);
        }

        public int KiemTraMACTPN(string MACTPN)
        {
            CTPhieuNhapHangDAO dao = new CTPhieuNhapHangDAO();
            return dao.KiemTraMACTPN(MACTPN);
        }
    }
}
